package com.pro.listener;

import org.springframework.amqp.core.ExchangeTypes;
import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SpringRabbitListener {
    @RabbitListener(queues = "pub-yanzhengma")
    public void listenerQueue(String yanzhengma){
        System.out.println("用户接收到了短信验证码："+yanzhengma);
    }
}
